<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFRepresenter.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">HFRepresenter.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_h_f_representer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  HFRepresenter.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  HexFiend_2</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Copyright 2007 ridiculous_fish. All rights reserved.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#import &lt;Cocoa/Cocoa.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#import &lt;HexFiend/HFController.h&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="interface_h_f_representer.html">   29</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_h_f_representer.html">HFRepresenter</a> : NSObject &lt;NSCoding&gt; {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">@private</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordtype">id</span> <a class="code" href="interface_h_f_representer.html#a9738e9e916b36b17e37b178234ee79fe">view</a>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="interface_h_f_controller.html">HFController</a> *<a class="code" href="interface_h_f_representer.html#ac2c63f016e14f6de4bcb9312ceca4998">controller</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    NSPoint <a class="code" href="interface_h_f_representer.html#a05cf33df8751ca00d2b08ac2cbe62067">layoutPosition</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;}</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;- (id)<a class="code" href="interface_h_f_representer.html#a9738e9e916b36b17e37b178234ee79fe">view</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;- (BOOL)<a class="code" href="interface_h_f_representer.html#a04bfc131d81d7123c4fcdcc5327f94dd">isViewLoaded</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;- (NSView *)createView <a class="code" href="interface_h_f_representer.html#a39e5e22b482218a8c38c384502ee1709">NS_RETURNS_RETAINED</a>;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;- (void)<a class="code" href="interface_h_f_representer.html#a786eb3e2db08cd99bd04aa737bf6073d">initializeView</a>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;- (<a class="code" href="interface_h_f_controller.html">HFController</a> *)<a class="code" href="interface_h_f_representer.html#ac2c63f016e14f6de4bcb9312ceca4998">controller</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;- (void)controllerDidChange:(<a class="code" href="_h_f_controller_8h.html#adfb5b0d9c70a4b65379361b34ba1aea5">HFControllerPropertyBits</a>)bits;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;- (NSUInteger)<a class="code" href="interface_h_f_representer.html#a821a42b782b48dd2dda877807f0eff54">bytesPerLine</a>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;- (NSUInteger)<a class="code" href="interface_h_f_representer.html#ae4f756afd4c3b7c44f710fa7374c582d">bytesPerColumn</a>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;- (void)representerChangedProperties:(<a class="code" href="_h_f_controller_8h.html#adfb5b0d9c70a4b65379361b34ba1aea5">HFControllerPropertyBits</a>)properties;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;- (NSUInteger)maximumBytesPerLineForViewWidth:(CGFloat)viewWidth;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;- (CGFloat)minimumViewWidthForBytesPerLine:(NSUInteger)<a class="code" href="interface_h_f_representer.html#a821a42b782b48dd2dda877807f0eff54">bytesPerLine</a>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;- (double)maximumAvailableLinesForViewHeight:(CGFloat)viewHeight;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;- (NSUInteger)<a class="code" href="interface_h_f_representer.html#a5393437fbe020d3079a979a7383eb67b">byteGranularity</a>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keyword">@property</span> (nonatomic) NSPoint <a class="code" href="interface_h_f_representer.html#a05cf33df8751ca00d2b08ac2cbe62067">layoutPosition</a>;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;+ (NSPoint)<a class="code" href="interface_h_f_representer.html#a242a7e6f74430c85bcaf9b3fe01e8fbf">defaultLayoutPosition</a>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keyword">@end</span></div><div class="ttc" id="interface_h_f_representer_html_a9738e9e916b36b17e37b178234ee79fe"><div class="ttname"><a href="interface_h_f_representer.html#a9738e9e916b36b17e37b178234ee79fe">-[HFRepresenter view]</a></div><div class="ttdeci">id view()</div></div>
<div class="ttc" id="interface_h_f_representer_html_a39e5e22b482218a8c38c384502ee1709"><div class="ttname"><a href="interface_h_f_representer.html#a39e5e22b482218a8c38c384502ee1709">-[HFRepresenter NS_RETURNS_RETAINED]</a></div><div class="ttdeci">NSView * NS_RETURNS_RETAINED()</div></div>
<div class="ttc" id="interface_h_f_representer_html_a242a7e6f74430c85bcaf9b3fe01e8fbf"><div class="ttname"><a href="interface_h_f_representer.html#a242a7e6f74430c85bcaf9b3fe01e8fbf">+[HFRepresenter defaultLayoutPosition]</a></div><div class="ttdeci">NSPoint defaultLayoutPosition()</div></div>
<div class="ttc" id="interface_h_f_representer_html_a821a42b782b48dd2dda877807f0eff54"><div class="ttname"><a href="interface_h_f_representer.html#a821a42b782b48dd2dda877807f0eff54">-[HFRepresenter bytesPerLine]</a></div><div class="ttdeci">NSUInteger bytesPerLine()</div></div>
<div class="ttc" id="interface_h_f_representer_html_a5393437fbe020d3079a979a7383eb67b"><div class="ttname"><a href="interface_h_f_representer.html#a5393437fbe020d3079a979a7383eb67b">-[HFRepresenter byteGranularity]</a></div><div class="ttdeci">NSUInteger byteGranularity()</div></div>
<div class="ttc" id="interface_h_f_controller_html"><div class="ttname"><a href="interface_h_f_controller.html">HFController</a></div><div class="ttdoc">A central class that acts as the controller layer for HexFiend.framework. </div><div class="ttdef"><b>Definition:</b> HFController.h:97</div></div>
<div class="ttc" id="interface_h_f_representer_html_a04bfc131d81d7123c4fcdcc5327f94dd"><div class="ttname"><a href="interface_h_f_representer.html#a04bfc131d81d7123c4fcdcc5327f94dd">-[HFRepresenter isViewLoaded]</a></div><div class="ttdeci">BOOL isViewLoaded()</div></div>
<div class="ttc" id="interface_h_f_representer_html"><div class="ttname"><a href="interface_h_f_representer.html">HFRepresenter</a></div><div class="ttdoc">The principal view class of Hex Fiend&amp;#39;s MVC architecture. </div><div class="ttdef"><b>Definition:</b> HFRepresenter.h:29</div></div>
<div class="ttc" id="_h_f_controller_8h_html_adfb5b0d9c70a4b65379361b34ba1aea5"><div class="ttname"><a href="_h_f_controller_8h.html#adfb5b0d9c70a4b65379361b34ba1aea5">HFControllerPropertyBits</a></div><div class="ttdeci">HFControllerPropertyBits</div><div class="ttdef"><b>Definition:</b> HFController.h:21</div></div>
<div class="ttc" id="interface_h_f_representer_html_a786eb3e2db08cd99bd04aa737bf6073d"><div class="ttname"><a href="interface_h_f_representer.html#a786eb3e2db08cd99bd04aa737bf6073d">-[HFRepresenter initializeView]</a></div><div class="ttdeci">void initializeView()</div></div>
<div class="ttc" id="interface_h_f_representer_html_a05cf33df8751ca00d2b08ac2cbe62067"><div class="ttname"><a href="interface_h_f_representer.html#a05cf33df8751ca00d2b08ac2cbe62067">HFRepresenter::layoutPosition</a></div><div class="ttdeci">NSPoint layoutPosition</div><div class="ttdoc">The layout position for the receiver. </div><div class="ttdef"><b>Definition:</b> HFRepresenter.h:107</div></div>
<div class="ttc" id="interface_h_f_representer_html_ae4f756afd4c3b7c44f710fa7374c582d"><div class="ttname"><a href="interface_h_f_representer.html#ae4f756afd4c3b7c44f710fa7374c582d">-[HFRepresenter bytesPerColumn]</a></div><div class="ttdeci">NSUInteger bytesPerColumn()</div></div>
<div class="ttc" id="interface_h_f_representer_html_ac2c63f016e14f6de4bcb9312ceca4998"><div class="ttname"><a href="interface_h_f_representer.html#ac2c63f016e14f6de4bcb9312ceca4998">-[HFRepresenter controller]</a></div><div class="ttdeci">HFController * controller()</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
